import React, { useState,useEffect } from 'react'
import './WrjBasicInformation.less'
import Map from '../map/Map'
declare var AMap: any;
import { useSelector,useDispatch } from "react-redux";

const BasicInformation:React.FC=()=>{
    // const [city,setCity]=useState('')
    const city=useSelector((store:any)=>store.counter.city)

    return (
        <div className='wrj-information-box'>
            <p>
                <span>详细地址：</span>
                <span>{city}</span>
            </p>
            <p>
                <span>配送时间：</span>
                <span>11:00-14:00，17:00-20:00，22-00-次日05:00</span>
            </p>
            <p>
                <span>配送区域：</span>
                <Map></Map>
            </p>
            <p>
                <span>建站时间：</span>
                <span>2099-03-30 18:20:40</span>
            </p>
            <p>
                <span>开通时间：</span>
                <span>2099-05-01 10:00:00</span>
            </p>
        </div>
    )
}

export default BasicInformation